<template>
  <div class="table-page-search-wrapper">
    <el-form :model="searchForm" ref="searchForm" label-width="100px" class="demo-ruleForm">
      <el-row :gutter="10">
        <el-col :md="6" :sm="12" :xs="24">
          <el-form-item label="券活动名称:">
            <el-input v-model="searchForm.couponName" placeholder="请输入券活动名称" />
          </el-form-item>
        </el-col>
        <el-col :md="6" :sm="12" :xs="24">
          <el-form-item label="领取人手机号:">
            <el-input v-model="searchForm.phoneNum" placeholder="请输入券活动名称" />
          </el-form-item>
        </el-col>
        <el-col :md="6" :sm="12" :xs="24">
          <div style="margin-left:30px">
            <el-button type="primary" icon="el-icon-search" @click="searchAction()">查询</el-button>
            <el-button icon="el-icon-refresh" @click="resetSearch()" style="margin-left: 8px;">重置</el-button>
          </div>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
export default {
  name: "search",
  data() {
    return {
      searchForm: {},
      zdsj: [], //制单时间
      supplierMerchantIdList: [
        {
          label: "商超",
          value: "02",
        },
        {
          label: "洗衣",
          value: "03",
        },
        {
          label: "家政",
          value: "04",
        },
        {
          label: "咖吧",
          value: "05",
        },
      ],
    };
  },
  methods: {
    searchAction() {
      //执行搜索
      this.$emit("search");
    },
    resetSearch() {
      this.searchForm = {};
      this.zdsj = [];
      this.pid = [];
      this.$emit("resetSearch");
    },
    getSearchForm() {
      //获取高级搜索条件
      return {
        ...this.searchForm,
      };
    },
    zdsjChange(e) {
      this.searchForm.beginTime = e[0];
      this.searchForm.endTime = e[1];
    },
  },
};
</script>


<style lang="less">
</style>>
